package com.tang.util;



import com.tang.dto.UserDTO;

import java.io.Serializable;

public class LoginUserContext implements Serializable {

    private static ThreadLocal<UserDTO> user = new ThreadLocal<>();

    public static UserDTO getUser() {
        return user.get();
    }

    public static void setUser(UserDTO userDTO) {
        LoginUserContext.user.set(userDTO);
    }

}
